import operate from '@dfeidao/atom-nodejs/db/operate';
import { IncomingHttpHeaders } from 'http';
import { systemid } from '../../atom/config';
interface Message {
	project_asset_no: string;
}


export default async function atom(message: Message, action_id: string, session_id: string, headers: IncomingHttpHeaders) {
	const op = operate(action_id, session_id, systemid);
	op.del('project_assets', { project_asset_no: message.project_asset_no });
	const res = await op.exec();
	return res;
}
